export const createPureObj = () =>{
  return Object.create(null);
}

export const createObj = () =>{
  return Object.create(Object.prototype);
}

export const inherit = (p) => {
  if (p == null) throw TypeError()   // p是一个对象，但不能是null
  if (Object.create) return Object.create(p)
  let t = typeof p;
  if (t !== "object" && t !== "function") throw TypeError();
  function f() { };
  f.prototype = p;
  return new f();
}

// export const hasOwn = values.hasOwnProperty(str)